﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using IDT.Entity;

namespace IDT.Dal
{
    public class ImagesContext : DbContext
    {
        public DbSet<Category> Categories { get; set; }

        public DbSet<Album> Albums { get; set; }

        public DbSet<Photo> Photos { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
